package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 员工提交招聘记录
 * </p>
 *
 * @author moonlan
 * @since 2021-03-27
 */
@TableName("staff_recruitment_record")
public class StaffRecruitmentRecord extends Model<StaffRecruitmentRecord> implements Serializable {


    /**
     * 招聘ID
     */
    @TableId(value = "staff_recruitment_record_id", type = IdType.AUTO)
    private Integer staffRecruitmentRecordId;

    /**
     * 提交招聘的员工ID
     */
    @TableField("staff_recruitment_record_staff_id")
    private Integer staffRecruitmentRecordStaffId;

    @TableField(exist = false)
    private Staff staff;

    @TableField("staff_recruitment_record_company_recruitment_id")
    private Integer staffRecruitmentRecordCompanyRecruitmentId;

    @TableField(exist = false)
    private CompanyRecruitment companyRecruitment;

    public Integer getStaffRecruitmentRecordCompanyRecruitmentId() {
        return staffRecruitmentRecordCompanyRecruitmentId;
    }

    public void setStaffRecruitmentRecordCompanyRecruitmentId(Integer staffRecruitmentRecordCompanyRecruitmentId) {
        this.staffRecruitmentRecordCompanyRecruitmentId = staffRecruitmentRecordCompanyRecruitmentId;
    }

    public CompanyRecruitment getCompanyRecruitment() {
        return companyRecruitment;
    }

    public void setCompanyRecruitment(CompanyRecruitment companyRecruitment) {
        this.companyRecruitment = companyRecruitment;
    }

    /**
     * 员工简历
     */
    @TableField("staff_recruitment_record_resume_id")
    private Integer staffRecruitmentRecordResumeId;

    @TableField("staff_recruitment_record_company_id")
    private Integer staffRecruitmentRecordCompanyId;

    @TableField(exist = false)
    private Company company;

    public Integer getStaffRecruitmentRecordCompanyId() {
        return staffRecruitmentRecordCompanyId;
    }

    public StaffRecruitmentRecord setStaffRecruitmentRecordCompanyId(Integer staffRecruitmentRecordCompanyId) {
        this.staffRecruitmentRecordCompanyId = staffRecruitmentRecordCompanyId;
        return this;
    }

    public Company getCompany() {
        return company;
    }

    public StaffRecruitmentRecord setCompany(Company company) {
        this.company = company;
        return this;
    }

    @TableField(exist = false)
    private Resume resume;

    public Staff getStaff() {
        return staff;
    }

    public StaffRecruitmentRecord setStaff(Staff staff) {
        this.staff = staff;
        return this;
    }

    public Resume getResume() {
        return resume;
    }

    public StaffRecruitmentRecord setResume(Resume resume) {
        this.resume = resume;
        return this;
    }

    public Integer getStaffRecruitmentRecordId() {
        return staffRecruitmentRecordId;
    }

    public StaffRecruitmentRecord setStaffRecruitmentRecordId(Integer staffRecruitmentRecordId) {
        this.staffRecruitmentRecordId = staffRecruitmentRecordId;
        return this;
    }

    public Integer getStaffRecruitmentRecordStaffId() {
        return staffRecruitmentRecordStaffId;
    }

    public StaffRecruitmentRecord setStaffRecruitmentRecordStaffId(Integer staffRecruitmentRecordStaffId) {
        this.staffRecruitmentRecordStaffId = staffRecruitmentRecordStaffId;
        return this;
    }

    public Integer getStaffRecruitmentRecordResumeId() {
        return staffRecruitmentRecordResumeId;
    }

    public StaffRecruitmentRecord setStaffRecruitmentRecordResumeId(Integer staffRecruitmentRecordResumeId) {
        this.staffRecruitmentRecordResumeId = staffRecruitmentRecordResumeId;
        return this;
    }

    @Override
    public String toString() {
        return "StaffRecruitmentRecord{" +
                "staffRecruitmentRecordId=" + staffRecruitmentRecordId +
                ", staffRecruitmentRecordStaffId=" + staffRecruitmentRecordStaffId +
                ", staffRecruitmentRecordResumeId=" + staffRecruitmentRecordResumeId +
                "}";
    }
}
